package com.xq.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * 封装查询页码
 */
@Data
public class PageQuery {
     @Min(value = 1,message = "页码不能小于1")
     @ApiModelProperty(value = "查询页码",example = "1")
     public int pageIndex;
     @Min(value = 1,message = "页码最小为1")
     @ApiModelProperty(value = "查询条数",example = "10")
     public int pageSize;

}
